package com.accompany.controller;


import com.accompany.common.result.CommonResult;
import com.accompany.model.Accompany;
import com.accompany.service.AccompanyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 陪诊类型 前端控制器
 * </p>
 *
 * @author lfs
 * @since 2023-03-08
 */
@Api(tags = {"陪诊类型"})
@RestController
@RequestMapping("/appAccompany")
public class AccompanyController {
    @Autowired
    AccompanyService service;

    @ApiOperation("获取陪诊类型列表")
    @GetMapping(value = "/getAccompanys")
    public CommonResult<List<Accompany>> getAccompanys(){
        return CommonResult.success(service.list());
    }



}
